package com.oe.ldmrabbitmq.dao;

import com.oe.ldmrabbitmq.pojo.OrderPojo;
import com.oe.ldmrabbitmq.pojo.PayDetailPojo;
import org.springframework.stereotype.Component;

import java.util.HashMap;
import java.util.Map;
import java.util.UUID;

@Component
public class PayDetailDao {
    /**
     * 模拟数据库支付流水表
     */
    Map<String, PayDetailPojo> pay_detail_table=new HashMap<>();

    public String insert(PayDetailPojo pojo){
        String uuid= UUID.randomUUID().toString();
        pojo.setPayId(uuid);
        pay_detail_table.put(uuid,pojo);
        return uuid;
    }

}
